<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/pc/jsp/common/common.jsp"%>
<%@ page language="java" import="com.limao.DBDataClass.CrowdUserAuthClass"%>
<% 
  String userid=(String)CacheClass.isLogin(request,response);
 if(CacheClass.getIntValue(userid)==0)
 {
 	out.println("<script language='JavaScript'>alert('您还没有登陆！');location.href=document.referrer;</script>"); //后退并刷新
 } 
 CrowdUserAuthClass user= WebFunction.getUserInfo(request,response);
 if(user==null)
 {
	 out.println("<script language='JavaScript'>alert('用户不存在，或被平台禁用，请联系客服！');window.history.back(-1);</script>");
	 return;
 } 
%>

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <title>我的二维码</title>
    <script src="js/jquery.qrcode.js"></script>
    <script src="js/utf.js"></script>
</head>
<body class='bcf'>

				
    <div class="myqrCode of h100 jz">
        <input type="hidden" value="<%=user.qrcodeurl %>" id="qrcode">
        <p class="c3 f19 tc" style="margin-top: 120px;">我为&nbsp;&nbsp;<span class="cred">《七彩云购》</span>&nbsp;&nbsp; 代言</p>
       <!--   <p class="c9 f15 tc mgt10">众筹、投资理财，尽在其中！</p>-->
        <a href='<%=user.qrcodeurl%>'> 
           <div id="code" class="w100 hauto" style="margin-top: 50px; margin-bottom: 10px;">
        </a>   
           </div>

        <p class="cred f14 tc">【扫描】或 【点击】  二维码注册、下载应用APP</p>
        <Br>分享到
          <div class="jiathis_style_32x32" style="margin-top: 10px; margin-left: 50px;margin-bottom: 50px;">
					<a class="jiathis_button_weixin"></a>
					<a class="jiathis_button_cqq"></a>
					<a class="jiathis_button_tsina"></a>
					<a class="jiathis_button_tqq"></a>
					<a class="jiathis_button_qzone"></a>
				<!-- 	<a href="http://www.jiathis.com/share?uid=2126565" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a> -->
			</div>
				<script type="text/javascript">
				var urlstr='<%=basePath%>'+'mb/jsp/share.jsp?shareid='+'<%=userid%>';
				//urlstr=$('#qrcode').val();
var jiathis_config={
	data_track_clickback:true,
	url:urlstr,
	summary:"这是我的二维码，可以来看看哦...",
	title:"我的二维码",
	shortUrl:false,
	hideMore:false
}
				</script>
				<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=2126565" charset="utf-8"></script>
				<!-- JiaThis Button END -->
				
				
				
				

				
    </div>
    
  

<script>

$().ready(function() {
     var cd=$('#qrcode').val();
     $("#code").qrcode({
            render: "canvas",    //设置渲染方式，有table和canvas，使用canvas方式渲染性能相对来说比较好
            text: cd,    //扫描二维码后显示的内容,可以直接填一个网址，扫描二维码后自动跳向该链接
            width: "300",               //二维码的宽度
            height: "300",              //二维码的高度
            background: "#ffffff",       //二维码的后景色
            foreground: "#000000",        //二维码的前景色
            src: 'pc/images/logo4.png'             //二维码中间的图片
      });
});

</script>
</body>
</html>